package com.cn.demo4.service.impl;

import com.cn.demo4.entity.NewsEntity;
import com.cn.demo4.entity.NewsTypeEntity;
import com.cn.demo4.mapper.NewsTypeMapper;
import com.cn.demo4.service.INewsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsTypeServiceImpl implements INewsTypeService {
    @Autowired
    private NewsTypeMapper newsTypeMapper;
    @Override
    public List<NewsTypeEntity> findAll() {
        return newsTypeMapper.findAll();
    }

    @Override
    public List<NewsTypeEntity> getNewsTypeModelListForHome() {
        return newsTypeMapper.getNewsTypeModelListForHome();
    }
}
